import request from '@/utils/request'

// 查询商户车辆售卖申请列表
export function listposSellApply(query) {
  return request({
    url: '/pos/posSellApply/list',
    method: 'get',
    params: query
  })
}

// 查询商户车辆售卖申请详细
export function getposSellApply(id) {
  return request({
    url: '/pos/posSellApply/' + id,
    method: 'get'
  })
}

// 新增商户车辆售卖申请
export function addposSellApply(data) {
  return request({
    url: '/pos/posSellApply',
    method: 'post',
    data: data
  })
}

// 修改商户车辆售卖申请
export function updateposSellApply(data) {
  return request({
    url: '/pos/posSellApply',
    method: 'put',
    data: data
  })
}

// 删除商户车辆售卖申请
export function delposSellApply(id) {
  return request({
    url: '/pos/posSellApply/' + id,
    method: 'delete'
  })
}

// 导出商户车辆售卖申请
export function exportposSellApply(query) {
  return request({
    url: '/pos/posSellApply/export',
    method: 'get',
    params: query
  })
}

export function posSellApplyexamine(data) {
  return request({
    url: '/pos/posSellApply/examine ',
    method: 'post',
    data
  })
}